﻿namespace Eldert.BTUG.IoT.Libraries.Extensions
{
    using System;
    using System.Diagnostics;

    /// <summary>
    /// Class used to implement extension methods.
    /// </summary>
    public static class Exceptions
    {
        /// <summary>
        /// Log an exception.
        /// </summary>
        /// <param name="exception">
        /// The exception to be logged.
        /// </param>
        public static void Log(this Exception exception)
        {
            Debug.WriteLine($"ERROR: {exception}");
        }
    }
}